package com.hualan.sfzyproject.mapper;

import com.hualan.sfzyproject.domain.CharityActivity;
import com.hualan.sfzyproject.domain.Consultants;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author LUCK
* @description 针对表【charity_activity(公益活动表)】的数据库操作Mapper
* @createDate 2025-01-02 16:01:40
* @Entity com.hualan.sfzyproject.domain.CharityActivity
*/
@Mapper
public interface CharityActivityMapper {

    int deleteByPrimaryKey(Long id);

    int insert(CharityActivity record);

    int insertSelective(CharityActivity record);

    CharityActivity selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(CharityActivity record);

    int updateByPrimaryKey(CharityActivity record);

    List<CharityActivity> listAll();
    List<Consultants> listAllConsultants();
    List<CharityActivity> selectByTitle(String name);
    List<CharityActivity> selectByConsultantsId(Integer id);
    //批量删除
    int deleteBatch(List<Long> ids);

}
